package aiku.numericalcontroloa.Mapper;

import aiku.numericalcontroloa.Model.Entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

/**
 * @Author 黄广庭
 * @Date 2024/1/6 17:31
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    List<String> selectAllId();

    /**
     * 获取已删除的
     * @param id
     * @return
     */
    User selectByIdWithDelete(@Param(value = "id") String id);

    /**
     * 根据id集合批量查询已删除的
     * @param userIdList
     * @return
     */
    List<User> selectBatchByIdWithDelete(@Param(value = "list")Collection<String> userIdList);

    /**
     * 物理删除用户
     * @param openId
     */
    void physicsDeleteByOpenId(@Param(value = "openId")String openId);
}
